package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the CI_IMAGENES_2 database table.
 * 
 */
@Entity
@Table(name="CI_IMAGENES_2")
public class CiImagenes2 implements Serializable {
	private static final long serialVersionUID = 1L;
	private CiImagenes2PK id;
	private String codActoOrig;
	private String errorCode;
	private String errorMessage;
	private String keyfileOid;
	private BigDecimal numPag;
	private BigDecimal numPags;
	private BigDecimal refnumPart;
	private BigDecimal sizeImg;
	private CiEntidad ciEntidad;

    public CiImagenes2() {
    }


	@EmbeddedId
	public CiImagenes2PK getId() {
		return this.id;
	}

	public void setId(CiImagenes2PK id) {
		this.id = id;
	}
	

	@Column(name="COD_ACTO_ORIG", length=5)
	public String getCodActoOrig() {
		return this.codActoOrig;
	}

	public void setCodActoOrig(String codActoOrig) {
		this.codActoOrig = codActoOrig;
	}


	@Column(name="ERROR_CODE", nullable=false, length=6)
	public String getErrorCode() {
		return this.errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}


	@Column(name="ERROR_MESSAGE", length=126)
	public String getErrorMessage() {
		return this.errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}


	@Column(name="KEYFILE_OID", length=24)
	public String getKeyfileOid() {
		return this.keyfileOid;
	}

	public void setKeyfileOid(String keyfileOid) {
		this.keyfileOid = keyfileOid;
	}


	@Column(name="NUM_PAG", precision=5)
	public BigDecimal getNumPag() {
		return this.numPag;
	}

	public void setNumPag(BigDecimal numPag) {
		this.numPag = numPag;
	}


	@Column(name="NUM_PAGS", precision=5)
	public BigDecimal getNumPags() {
		return this.numPags;
	}

	public void setNumPags(BigDecimal numPags) {
		this.numPags = numPags;
	}


	@Column(name="REFNUM_PART", nullable=false)
	public BigDecimal getRefnumPart() {
		return this.refnumPart;
	}

	public void setRefnumPart(BigDecimal refnumPart) {
		this.refnumPart = refnumPart;
	}


	@Column(name="SIZE_IMG")
	public BigDecimal getSizeImg() {
		return this.sizeImg;
	}

	public void setSizeImg(BigDecimal sizeImg) {
		this.sizeImg = sizeImg;
	}


	//bi-directional many-to-one association to CiEntidad
    @ManyToOne
	@JoinColumn(name="ENT_REFNUM", nullable=false, insertable=false, updatable=false)
	public CiEntidad getCiEntidad() {
		return this.ciEntidad;
	}

	public void setCiEntidad(CiEntidad ciEntidad) {
		this.ciEntidad = ciEntidad;
	}
	
}